#include "keyboard.h"
#include "vga.h"

KEYBOARD_T keyboard_t[]={
    {0x02,'1'},//1
    {0x03,'2'},//2
    {0x04,'3'},//3
    {0x05,'4'},//4
    {0x06,'5'},//5
    {0x07,'6'},//6
    {0x08,'7'},//7
    {0x09,'8'},//8
    {0x0a,'9'},//9
    {0x0b,'0'},//0

    {0x10,'q'},//q   
    {0x11,'w'},//w  
    {0x12,'e'},//e  
    {0x13,'r'},//r  
    {0x14,'t'},//t  
    {0x15,'y'},//y  
    {0x16,'u'},//u  
    {0x17,'i'},//i  
    {0x18,'o'},//o  
    {0x19,'p'},//p 

    {0x1e,'a'},//a   
    {0x1f,'s'},//s  
    {0x20,'d'},//d  
    {0x21,'f'},//f  
    {0x22,'g'},//g  
    {0x23,'h'},//h  
    {0x24,'j'},//j  
    {0x25,'k'},//k  
    {0x26,'l'},//l  
    {0x27,';'},//; 

    {0x2c,'z'},//z   
    {0x2d,'x'},//x  
    {0x2e,'c'},//c  
    {0x2f,'v'},//v  
    {0x30,'b'},//b  
    {0x31,'n'},//n  
    {0x32,'m'},//m  

    {0x1c,'\n'},//enter
 
};


void keyboard_show(unsigned char val)
{
    int i = 0;
    for(i = 0 ; i < sizeof(keyboard_t)/sizeof(KEYBOARD_T); i ++){
        if(keyboard_t[i].id == val){
            vga_show_char_regex(keyboard_t[i].val);
        }
    }
}


 



